<?php
/*
 *
 * modules/ctcp_responses.php - Version and Ping replies for Ruffy
 * Written by Nick Markwell
 * 
 * Part of the Ruffy IRC Bot by Nick Markwell
 * 
 */
              if(stristr($buffer,"PRIVMSG $nickname :".chr(1)."VERSION".chr(1))){
                SendCommand("NOTICE ".$sender." :".chr(1)."VERSION Ruffy v".$version." as ".$nickname.chr(1));
              }
              if(stristr($buffer,"PRIVMSG $nickname :".chr(1)."PING")){
                $pingA=explode("PING ",$buffer);
                SendCommand("NOTICE ".$sender." :".chr(1)."PING ".$pingA[1]);
              }
              if(stristr($buffer,"PRIVMSG $nickname :".chr(1)."TIME")){
                SendCommand("NOTICE ".$sender." :".chr(1)."TIME ".date("F j  g:i a Y", time()).chr(1));
              }
              if(stristr($buffer,"PRIVMSG $nickname :".chr(1)."FINGER".chr(1))){
                SendCommand("NOTICE ".$sender." :".chr(1)."FINGER Ewwwwwww... I dunno what to put here... maybe you want to VERSION me? :)".chr(1));
              }

?>